#include <stdio.h>

int main()
{

    FILE *fp;

    fp = fopen("./test-p1.txt", "w+");
    if (fp == NULL)
    {
        printf("fopen failed\n");
        return -1;
    }

    fputs("hello world", fp);
    fclose(fp);

    return 0;
}